Skip to content

id: adapt id-store and id-worlds to iroh-blobs 0.105 / redb 5 (checkpoint) - #14325

Merged
dezren39 merged 3 commits into
mainfrom
oc-code-04/14315-idstore-checkpoint
Nov 24, 2026
Merged

dezren39 merged 3 commits into
mainfrom
oc-code-04/14315-idstore-checkpoint

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #14396
Refs #14315

Restores the id workspace build after the grouped bump on main (0e39e3e4aea) brought comrak 1.1.0, redb 5 and iroh-blobs 0.105.

  • Pins iroh-blobs 0.103 and iroh-gossip 0.101 across pkgs/id, matching iroh-docs 0.101; removes the hash bridge helpers.
  • Adapts comrak 1.1.0 constructors and node shapes in id-web markdown.
  • Adapts redb 5 (compaction arg, create_with_backend, BackendError) in id-store, id-web and test backends.
  • Fixes id-worlds spill_pool test arity and id-cli contract version expectation (v1.16).

Verified: cargo test -p id-cli -p id-web -p id-worlds --tests passes (757 + 749 + 1167 + others). id-native-shell does not build here (missing wayland pkg-config); unrelated to this change.

Bridge iroh-blobs 0.103 hashes used by iroh-docs 0.101 byte-wise, and drop
the redb 5 range turbofish. id-cli still needs the iroh-gossip 0.103 and
blob-store adaptation; that remains open on #14315.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update redb API usage and add conversions between iroh-docs content hashes and iroh-blobs hash values in id-store and id-worlds.

Changes: redb compatibility

Layer / File(s) Summary
Update redb API usage
pkgs/id/crates/id-events/src/event_store/author_events.rs, pkgs/id/crates/id-events/src/event_store/validity.rs, pkgs/id/crates/id-store/src/graph_index.rs
The event-store modules import ReadableTable. GraphIndex::scan uses inferred range bounds while retaining its existing bounds.

iroh hash compatibility

Layer / File(s) Summary
Convert hashes in id-store
pkgs/id/crates/id-store/Cargo.toml, pkgs/id/crates/id-store/src/tags.rs
id-store adds an iroh-blobs dependency alias and converts hashes when writing and decoding tag entries.
Convert hashes in world records
pkgs/id/crates/id-worlds/Cargo.toml, pkgs/id/crates/id-worlds/src/world_records.rs
id-worlds adds an iroh-blobs dependency alias and converts content hashes for reconciliation, record reads, and blob checks during replication.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • Issue 14315 reports that id-store does not compile after dependency upgrades. This PR updates the redb range call and iroh-blobs hash conversions described in the issue, but the provided context says id-cli still fails.

Suggested reviewers: claude

Merge Risk: Minimal · up to c15c9 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: adapting id-store and id-worlds to the iroh-blobs 0.105 and redb 5 API changes. The raw summary shows the changes match that scope: a redb ReadableTable import, a rang…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: adapting id-store and id-worlds to the iroh-blobs 0.105 and redb 5 API changes. The raw summary shows the changes match that scope: a redb ReadableTable import, a range call update, an aliased iroh-blobs 0.103.1 dependency for iroh-docs hash conversion, and hash conversion in tags.rs and world_records.rs. The title says 'iroh-blobs 0.105', but the summary shows the aliased dependency at 0.103.1, which the objectives explain as the version iroh-docs needs. The '(checkpoint)' label is accurate because the PR description says id-cli still fails and related work remains. The title is specific and concise, and it is a fair description of the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53f554fc-3f78-420e-8175-16d334fb825d
Commits

Reviewing files that changed from the base of the PR and between 33271cd and c15c989.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 7

  • pkgs/id/crates/id-events/src/event_store/author_events.rs
  • pkgs/id/crates/id-events/src/event_store/validity.rs
  • pkgs/id/crates/id-store/Cargo.toml
  • pkgs/id/crates/id-store/src/graph_index.rs
  • pkgs/id/crates/id-store/src/tags.rs
  • pkgs/id/crates/id-worlds/Cargo.toml
  • pkgs/id/crates/id-worlds/src/world_records.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Pin iroh-blobs 0.103 and iroh-gossip 0.101 across pkgs/id so iroh-docs
matches its Hash type, drop the hash bridge helpers, and adapt comrak
1.1.0 node constructors, redb 5 backends and compaction, and the world
contract test to current shapes. Refs #14315, #14396.
@dezren39
dezren39 merged commit 09fb550 into main Nov 24, 2026
1 check passed
@dezren39
dezren39 deleted the oc-code-04/14315-idstore-checkpoint branch November 24, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id-store: iroh-blobs 0.103/0.105 Hash mismatch breaks build of tags.rs

1 participant